package com.carey.myblog.service;

import com.carey.myblog.pojo.Type;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;


/**
* @author carey-
* @description 针对表【t_type】的数据库操作Service
* @createDate 2022-05-25 22:10:00
*/
public interface TypeService extends IService<Type> {
    int saveType(Type type);

    Type getType(Long id);

    Type getTypeByName(String name);

    Page<Type> listType(Pageable pageable);

    Type updateType(Long id,Type type);

    void deleteType(Long id);

    List<Type> listTypeTop(Integer size);
}
